/* Copyright 203-2115 AtomWare Technology Pty Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * The flowing information must be keep 
 * DailyResetDate.java
 * business
 * 2012-12-29上午9:54:17
 * @author 屈甲康
 * QQ285799123
 * mailto:qujiakang@gmail.com
 */

package org.jackysoft.entity;


import javax.persistence.Entity;

import org.hibernate.annotations.Type;
import org.jackysoft.entity.AbstractEntity;
import org.joda.time.DateTime;

@Entity
public class DailyResetDate extends AbstractEntity {
     /**
	 * 
	 */
	private static final long serialVersionUID = -175038031959013559L;
	private int year;
    private int month;
    private DateTime firstDate=null;
    private DateTime lastDate=null;
    public static final int DEFAULT_LAST_DAY = 26;
	public static final int DEFAULT_FIRST_DAY = 27;

	public DailyResetDate(){
       super();	
       
    }
    
	
	public DailyResetDate(int year, int month, DateTime firstDate,
				DateTime lastDate) {
			this();
			this.year = year;
			this.month = month;
			this.firstDate = firstDate;
			this.lastDate = lastDate;
    }
  
    
    

	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}	

	public int getMonth() {
		return month;
	}
	
	
	public void setMonth(int month) {
		this.month = month;
	}
	
	/**
	 * @return 
	 *    显示报表的起报日期
	 * */
	@Type(type = "jodatime")
	public DateTime getFirstDate() {
		return firstDate;
	}
	public void setFirstDate(DateTime firstDate) {
		this.firstDate = firstDate;
	}
	
	/**
	 * @return
	 *   显示报表的结存日期
	 * */
	@Type(type = "jodatime")
	public DateTime getLastDate() {
		return lastDate;
	}
	public void setLastDate(DateTime lastDate) {
		this.lastDate = lastDate;
	}
}
